The fourth-order RK method of Nystrom for second-order equations
has proved very useful in application to the tracking of charged particles in magnetic fields. It consists of the formulae
This formulation is taken from [Abramowitz74] (algorithm 25.5.20), and minimizes the number of evaluations of the magnetic field (in practice only two evaluations per step are needed, since y4 is close to y(x+h), and the next step can be started using the latest field values from the present step).
If applied to the equation
, written
in the form
with
, the
Nystrom method reduces to Simpson's rule
For a more detailed discussion, e.g. [Wong92], [Press95], or [Flowers95].
Rudolf K. Bock, 7 April 1998